import java.util.Scanner;

public class Main {



        public static void main(String[] args) {
            Scanner scanner = new Scanner(System.in);
            double d= scanner.nextDouble();

            //write your code here......
            int i=0;
            if((d-(int) d)<0.5){
                i=(int)d;
            }
            else{
                i=(int)d+1;
            }
            System.out.println(i);
        }
    }

